home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 4 / Windows 6-Pak (InfoMagic) (Disc 4) (1999).ISO / Quick-Shutdown-Utilities / sd2d10.exe / data1.cab / Program_Executable_Files / Readme.txt < prev    next >
Encoding:
Text File  |  1998-01-21  |  10.9 KB  |  244 lines

  1. Shut Down To DOS v1.0
  2. For Windows 95
  3.  
  4. c1998 Digital Objects Software
  5. http://www.mrdo.com
  6.  
  7.  
  8.  
  9. Description
  10.  
  11. Shut Down To DOS (the executable file SD2D.EXE) is a configuration
  12. manager.  Running this program will allow you to enable, disable and
  13. customize the events that take place when you shut down your computer.
  14.  
  15.  
  16. Features
  17.  
  18. Shut Down To DOS leaves your computer at the DOS prompt when you shut
  19. down Windows 95.  You may safely shut off your computer at any time.
  20. Shut down and run a DOS program your choose.
  21. Shut down to a "simulated" auto-destruct countdown.  Have fun with your
  22. friends.
  23.  
  24.  
  25. How To Use
  26.  
  27. Simply run SD2D.EXE from Windows, and when you save your configuration
  28. there is no need to run the program again until you wish to make changes
  29. or return to the original shut down method.
  30.  
  31. With the Shut Down To DOS configuration manager you have three options
  32. for events that take place when the computer is shut down.  The first
  33. option is the default, and simply leaves your computer at the DOS
  34. prompt.  You may safely turn off your computer whenever it is at the DOS
  35. prompt.  The second option is "Auto-Destruct Sequence".  This is a DOS
  36. program, AUTOD.EXE, that "pretends" the computer will self-destruct when
  37. the countdown reaches zero;  somewhat reminiscent of a Star Trek TOS
  38. (the original series) situation.  The computer can be safely turned off
  39. while the countdown is running.  See "Auto-Destruct Sequence" below for
  40. more information on this program.  The third and last option allows you
  41. to specify the DOS program to run when Windows shuts down.
  42.  
  43. The only file you really need is SD2D.EXE.  The setup program is just a
  44. formal way of distributing the software and allows a clean removal (see
  45. "Uninstalling The Software" below).  The file may simply be copied to
  46. another Windows 95 system.  AUTOD.EXE does not need to be copied either,
  47. since and image of the program is kept in SD2D.EXE and is created if it
  48. does not exist.  AUTOD.EXE is always created in and executed from the
  49. same directory as SD2D.EXE.  The only files that will not be available
  50. when SD2D.EXE is used alone is the help file and the BMP and WAV files
  51. distributed in the archive.
  52.  
  53.  
  54. How It Works
  55.  
  56. There are two files that need to be changed to allow your computer to
  57. return to the DOS prompt when you shut down your computer, MSDOS.SYS and
  58. AUTOEXEC.BAT.  The method described here was made possible by an article
  59. posted by Jesse Slicer, "Shutdown Windows 95 To A DOS Prompt", on the
  60. Easter Egg Archive, http://www.eeggs.com (see credits below).
  61.  
  62. The BootGUI option in MSDOS.SYS is set to 0 to keep Windows from
  63. launching after AUTOEXEC.BAT is processed.
  64.  
  65. At the end of the file AUTOEXEC.BAT are four lines managed by SD2D.EXE
  66. that launches Windows after the first part of the file's commands are
  67. processed.  After Windows is shut down, batch processing returns to
  68. AUTOEXEC.BAT after the line that started Windows, and the remaining two
  69. lines are processed.  The first line, "C:\WINDOWS\COMMAND\MODE.COM CO80"
  70. switches the VGA graphics display that displays "It's now safe to turn
  71. off your computer" to 80 x 25 text mode.  The last line starts the DOS
  72. program specified, if any.  Otherwise, the system is left at the DOS
  73. prompt.
  74.  
  75.  
  76. Auto-Destruct Sequence
  77.  
  78. When the "Auto-Destruct Sequence" option is chosen, AUTOD.EXE is the DOS
  79. program that is started when Windows shuts down.  The timer will count
  80. down to 0, then simulate a computer hardware failure.  It is perfectly
  81. safe to shut down the computer at any point in this program.  DO NOT
  82. shut off the computer UNTIL the countdown begins, which is immediately
  83. after it starts.  Before then Windows is still closing the files it has
  84. open.  If you wish to return to the DOS prompt from this program, just
  85. enter the password.  When you choose the "Auto-Destruct Sequence"
  86. option, AUTOD.EXE will be created in the same directory as SD2D.EXE if
  87. it doesn't already exist.  An image of AUTOD.EXE is kept within SD2D.EXE
  88. so the file may be copied from computer to computer.  There are three
  89. command line options to AUTOD.EXE, -?, -NS, and -T=###.  -NS turns off
  90. the potentially embarrassing auto-destruct sound effects.  The no-sound
  91. option can be set via a check box in the configuration manager.  -T=###
  92. specifies the starting countdown value.  If you wish to cancel AUTOD.EXE
  93. altogether, hold down CTRL-ALT as it starts up and you will be left at
  94. the DOS prompt.  That's about it for AUTOD.EXE.  What's that?  The
  95. password?  Oh yeah!  Well, I'll just give you a hint.  Try typing a
  96. senior officer's last name and the color of his shirt.  You have to be a
  97. genuine Trekkie (or know one) to get out of this one ;)
  98.  
  99.  
  100. Extra Files
  101.  
  102. Several files that ship with the archive are BMP and WAV files to be
  103. used in conjunction with the Auto-Destruct Sequence, to enhance its
  104. effect.  The configuration manager does not manipulate these files, they
  105. are to be used manually.  SD2Dx.WAV can be used as the Exit Windows
  106. sound.  They are the Enterprise computer voice stating "Auto-Destruct
  107. Sequence armed", etc.  SD2D.BMP is used to replace C:\WINDOWS\LOGOW.SYS
  108. and C:\WINDOWS\LOGOS.SYS.  The two files are simply bitmaps that are
  109. used to display "Please wait while your computer shuts down" and "It's
  110. now safe to turn off your computer".  Copy and rename SD2D.BMP to the
  111. Windows directory with these names to display "Standby... Initiating
  112. Auto-Destruct Sequence" as the computer shuts down.  BE CAREFUL, it is
  113. NOT safe to turn off the computer UNTIL the countdown begins.  Remember
  114. to backup LOGOW.SYS and LOGOS.SYS if you wish to restore them later.
  115.  
  116.  
  117. Uninstalling The Software
  118.  
  119. Before using the Control Panel's "Add/Remove Program", run the
  120. configuration manager and disable Shut Down To DOS.  This ensures the
  121. configuration files AUTOEXEC.BAT and MSDOS.SYS are returned to normal
  122. before the software is removed.
  123.  
  124.  
  125. Manual Configuration
  126.  
  127. To quickly disable Shut Down To DOS manually, delete the four SD2D lines
  128. from AUTOEXEC.BAT and change BootGUI=0 in MSDOS.SYS to BootGUI=1 as
  129. described below.
  130.  
  131. The four lines in AUTOEXEC.BAT managed by SD2D.EXE can be edited outside
  132. of the configuration manager, as long as all four lines remain together
  133. at the end of AUTOEXEC.BAT, and the first line is not altered at all.
  134. You can place other lines after these four lines, but be aware that
  135. these other lines will not be processed before Windows starts.  Running
  136. SD2D.EXE and selecting OK when Shut Down To DOS is enabled will move the
  137. four lines to the end of AUTOEXEC.BAT.
  138.  
  139. All four lines can be manually removed from AUTOEXEC.BAT to disable Shut
  140. Down To DOS completely.  If you do this, remember that you will also
  141. have to modify the BootGUI option in MSDOS.SYS in order to have Windows
  142. start automatically again.  If BootGUI is left with a value of 0, the
  143. computer will start up at the DOS prompt, where you can enter WIN to
  144. start Windows.
  145.  
  146. Altering BootGUI in MSDOS.SYS
  147.  
  148. Enter ATTRIB -S -H -R C:\MSDOS.SYS
  149. Enter EDIT C:\MSDOS.SYS
  150. Find the line that reads BootGUI=0 and change to BootGUI=1*
  151. Save the file and exit the editor
  152. Enter ATTRIB +R +H +S C:\MSDOS.SYS
  153. *When BootGUI is 0, Windows will not start automatically when the
  154. computer is booted.  Type WIN to start Windows from the DOS prompt.
  155.  
  156.  
  157. Special Considerations
  158.  
  159. You may safely shut off your computer at any time after the DOS prompt
  160. appears.  The only time you should be careful is if you run a DOS
  161. program other than AUTOD.EXE and it opens files while running.  You
  162. should exit such programs using its specific shut down process before
  163. you turn off your computer.
  164.  
  165. When enabled, make sure that the four lines in AUTOEXEC.BAT managed by
  166. SD2D remain together at the end of the file AUTOEXEC.BAT.  It is
  167. possible for other software installers to edit AUTOEXEC.BAT and you must
  168. ensure that the SD2D lines are moved to the end of the file if
  169. necessary.  You can simply run SD2D and select OK to have it ensure the
  170. lines are located at the end of AUTOEXEC.BAT.
  171.  
  172. There are some utilities that may change the value of BootGUI in
  173. MSDOS.SYS, as for example, Microsoft's Power Toys' TweakUI.  The "Start
  174. GUI Automatically" option can change the value of BootGUI.  Again,
  175. simply run SD2D and select OK to ensure that this value is properly set.
  176.  
  177. The startup option, "Command Prompt Only", accessed by pressing F8 when
  178. "Starting Windows 95..." appears will no longer work when Shut Down To
  179. DOS is enabled.  In order to re-enable this option manually remove the
  180. four lines from the end of AUTOEXEC.BAT beginning with the line "REM
  181. SD2D...".
  182.  
  183. When you specify a DOS program to be launched when Windows shuts down,
  184. make sure it is a DOS program.  Otherwise, Windows will restart itself
  185. to run a Windows-only program.
  186.  
  187. It is not recommended that SD2D be executed from a floppy drive,
  188. read-only disk, or network drive.  The program should be copied to a
  189. local hard disk before it is used.  This is to ensure that the disk will
  190. be present when Windows is shut down, and that AUTOD.EXE is created on a
  191. local hard disk if it is used.
  192.  
  193.  
  194. Tip
  195.  
  196. Shut Down To DOS will only work when "Shut down the computer" is chosen
  197. from the Start/Shut Down... menu.  "Restart the computer" is not
  198. affected by Shut Down To DOS, but here's a tip.  To restart windows
  199. without going through the typical warm boot of the "Restart the
  200. computer" item, hold down the LEFT SHIFT key as you click OK and Windows
  201. will restart without warm booting the computer.  This is a time saver
  202. and cleanly shuts down and restarts Windows.
  203.  
  204.  
  205. Disclaimer
  206.  
  207. Digital Objects Software assumes no responsibility for any damage or
  208. losses incurred when using this software.  This software has been
  209. rigorously tested and implements error handling for all possible error
  210. situations.
  211.  
  212.  
  213. License
  214.  
  215. Shut Down To DOS v1.0 is Freeware.  It is to be distributed only at no
  216. charge for the software itself.  For continued use of this software,
  217. registration is appreciated.  Registration provides information on the
  218. program's usage, and will enter your e-mail address in the mailing list
  219. should the software be revised.  E-mail your name and return e-mail
  220. address to donath@mrdo.com.  If you wish for your name not to be
  221. included in the mailing list, please indicate so.  Your e-mail address
  222. will never be given to any other party.  I hate spam as much as you.  Do
  223. a search on Infoseek for Spam Hater.  It's a great way to get back at
  224. the no-return-address spammers, and helps everyone.
  225.  
  226.  
  227. Credits
  228.  
  229. Shut Down To DOS v1.0 was created and is distributed by:
  230.  
  231. Clarence Donath
  232. Digital Objects Software, Wyoming, Rhode Island, USA
  233. http://www.mrdo.com
  234. donath@mrdo.com
  235.  
  236. Shut Down To DOS configuration manager was written in Visual C++ 5.0
  237. (SP3).  Auto-Destruct Sequence was written in Turbo Pascal 7.0.
  238.  
  239. Special thanks to Jesse C. Slicer (http://www.tfs.net/~jslicer)
  240. (jslicer@tfs.net) for providing the information that allows shutting
  241. down Windows 95 to the DOS prompt.  This information was posted in an
  242. article by Jesse in The Easter Egg Archive at http://www.eeggs.com.
  243.  
  244.